<?php
namespace Service;

class Resource extends Base
{

    public function getDatabase()
    {
        return $this->get(DATABASE_RESOURCE);
    }

    public function getGrade1List($categoryId = 0, $page = 1, $pageSize = 10, $userId = 0)
    {
        $database = $this->getDatabase();
        return $database->getGrade1List($categoryId, $page, $pageSize, $userId);
    }

    public function getGrade123List($parentId = 0)
    {
        $database = $this->getDatabase();
        return $database->getGrade123List($parentId);
    }

}